package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.exception.PhoneNotUniqueException;
import com.atguigu.gulimall.member.exception.UsernameNotUniqueException;
import com.atguigu.gulimall.member.vo.HttpResponseVo;
import com.atguigu.gulimall.member.vo.RegisterVo;
import com.atguigu.gulimall.member.vo.UserLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author zhangjianyou
 * @email 1844897920@qq.com
 * @date 2022-06-01 16:05:33
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(RegisterVo registerVo);

    void checkPhoneIsUnique(String phone) throws PhoneNotUniqueException;

    void checkUsernameIsUnique(String username) throws UsernameNotUniqueException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity login(HttpResponseVo responseVo);
}

